
public class HelloWorldWithArgument {

	public static void main(String[] args) {
		//expecting name 
		//String name = args[0];
		// here everytime i need to change the code that is name whoever i want to..
		System.out.println("Hello Raji");
		
		//Here now i dont need to change. It will take automatically.But if we run it showed error becoz we didnot mention
		//or pass values to the argument.
		String name = args[0];
		
		System.out.println("Hello " + name);
		
		//how we pass values to argument. right click,in run as, click run configurations and click argument and in program argument, give values
		//then click run. here i gave two values one as Raji and other as Shivani.
		//suppose if we we want to know array length
		System.out.println("Array length =" + args.length);
		
	//if we want other value in the argument.
		String secondName = args[1];
		System.out.println("Hello "+ secondName);
		
	}

}
